﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TravelRecordManager.aspx.cs"
    Inherits="YhmOA.Integrated.Car.TravelRecordManager" %>

<%@ Register Assembly="YhmOAWebControls" Namespace="YhmOA.WebControls" TagPrefix="YhmOA" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link type="text/css" rel="Stylesheet" href="../../Styles/Common.css" />
    <script type="text/javascript" src="../../Scripts/jquery-1.5.2.min.js"></script>
    <script type="text/javascript" src="../../Scripts/include.jquery.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="MainRound">
        <div class="MainRoundContent">
            <div class="MainRoundContentW">
                <div class="MainBody">
                    <div class="Navigation">
                        综合行政 >> 车辆管理 >> 行车记录
                    </div>
                    <div style="border: 1px solid #93BEE2; border-bottom: 0px; padding: 8px 0 8px 8px;">
                        <table>
                            <tr>
                                <td>
                                    <input class="Button" onclick="ShowDialog('TravelRecordForm.aspx?mode=1','添加行车记录',785,350);"
                                        style="width: 60px" type="text" value="添加" />
                                </td>
                                <td>
                                    <input class="Button" onclick="return RoleVerification('3','DeleteData();');" style="width: 60px"
                                        type="text" value="删除" />
                                </td>
                                <td>
                                    <asp:TextBox ID="txt_Search" runat="server" notAjaxRender="notAjaxRender" CssClass="TextBoxSearch"
                                        onkeyup="Search();"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div style="overflow: auto;">
                        <asp:GridView ID="gvShow" runat="server" Width="1645px" EmptyDataText="暂无数据..." CssClass="Table">
                            <Columns>
                                
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <input type="checkbox" id="allChecked" onclick="CheckedEvent('allChecked');" value="0" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <input id="ItemChk" class="ItemChk" name="ItemChk" type="checkbox" value='<%# Eval("Id") %>' />
                                    </ItemTemplate>
                                    <ItemStyle Width="25px" CssClass="TdCenter" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate><a href="javascript:void(0);">操作</a></HeaderTemplate>
                                    <ItemTemplate><a onclick="ShowDialog('TravelRecordForm.aspx?mode=0&id=<%# Eval("Id") %>','查看行车记录',785,330);" href="javascript:void(0);">查看</a>
                                    <a onclick="ShowDialog('TravelRecordForm.aspx?mode=2&id=<%# Eval("Id") %>','修改行车记录',785,350);" href="javascript:void(0);">修改</a></ItemTemplate>
                                    <ItemStyle Width="80px" CssClass="TdCenter"/>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('SN');" href="javascript:void(0);">编号</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("SN")%></ItemTemplate>
                                    <ItemStyle Width="140px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('PlateNum');" href="javascript:void(0);">车牌号码</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("PlateNum")%></ItemTemplate>
                                    <ItemStyle Width="80px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('UserName');" href="javascript:void(0);">用车人</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("UserName")%></ItemTemplate>
                                    <ItemStyle Width="80px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('UserCompany');" href="javascript:void(0);">用车单位</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("UserCompany")%></ItemTemplate>
                                    <ItemStyle Width="80px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('PeopleCount');" href="javascript:void(0);">人数</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("PeopleCount")%></ItemTemplate>
                                    <ItemStyle Width="40px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('Driver');" href="javascript:void(0);">驾驶员</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("Driver")%></ItemTemplate>
                                    <ItemStyle Width="80px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('Cause');" href="javascript:void(0);">用车事由</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("Cause")%></ItemTemplate>
                                    <ItemStyle Width="80px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('SendMileage');" href="javascript:void(0);">出车时里程</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("SendMileage")%></ItemTemplate>
                                    <ItemStyle Width="100px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('ReturnMileage');" href="javascript:void(0);">归还时里程</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("ReturnMileage")%></ItemTemplate>
                                    <ItemStyle Width="100px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('CurrentMileage');" href="javascript:void(0);">本次行驶里程</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("CurrentMileage")%></ItemTemplate>
                                    <ItemStyle Width="120px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('SendTime');" href="javascript:void(0);">出发时间</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("SendTime")%></ItemTemplate>
                                    <ItemStyle Width="120px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('ReturnTime');" href="javascript:void(0);">归还时间</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("ReturnTime")%></ItemTemplate>
                                    <ItemStyle Width="120px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('Direction');" href="javascript:void(0);">去向</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("Direction")%></ItemTemplate>
                                    <ItemStyle Width="140px" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('DrivingLine');" href="javascript:void(0);">行车线路</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("DrivingLine")%></ItemTemplate>
                                    <ItemStyle Width="140px" />
                                </asp:TemplateField>

                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <a onclick="Sort('Remarks');" href="javascript:void(0);">备注</a></HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Eval("Remarks")%></ItemTemplate>
                                    <ItemStyle Width="140px" />
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle CssClass="ThCenter" />
                        </asp:GridView>
                    </div>
                    <YhmOA:Pager ID="gvShowPager" runat="server" />
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
